﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using WebIG.Data;

namespace WebIG.Service
{
    public interface IEndpoint
    {
        AuthResult RequestAccessToken(string code);

        List<Feed> GetUserMedia(string id, string accessToken);

        List<Feed> GetSelfFeeds(string accessToken);

        List<Feed> GetMediaPopular();

        Feed GetMedia(string id, string accessToken);

        User GetUser(string id, string accessToken);

        List<Feed> LoadMoreFeeds(int type, string userId, string maxId, string accessToken);

        List<User> GetMediaLikes(string mediaId, string accessToken);

        ResponseData<string> SetMediaLike(string mediaId, string accessToken);
        
        ResponseData<string> DelMediaLike(string mediaId, string accessToken);

        ResponseData<Relationship> GetRelationship(string userId, string accessToken);

        ResponseData<Relationship> ModifyRelationship(string userId, string accessToken,string action);

    }
}
